﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Stone.DataContracts;
using System.Data;
using System.ServiceModel;

namespace Stone.ServiceInterfaces.ServiceInterfaces
{
    [ServiceContract()]
    public interface IYhxxService
    {
        #region 事务操作

        [OperationContract]
        void addTecall(TecEntity tecEntity, TecArrangeEntity taEntity, Zap2Entity zap2Entity);

        [OperationContract]
        void delTecall(string tecinfo_id);

        [OperationContract]
        void updateTecall(TecEntity tecEntity, TecArrangeEntity taEntity, Zap2Entity zap2);
        #endregion

        #region 教师查询

        [OperationContract]
        DataTable GetTecinfo8no_time(string tmpno, string time);

        [OperationContract]
        TecEntity GetYhxxEntity8Condi(string spell, string no);

        [OperationContract]
        TecEntity GetTecinfo8id(string id);

        [OperationContract]
        DataTable GetTecinfo4Contact(string no, string spell, string sex, string dep,
           List<string> course_name_list, List<string> grade_name_list);

        [OperationContract]
        DataTable GetTecinfo(string no, string spell, string sex, string dep,
           List<string> course_name_list, List<string> grade_name_list, string time);

        [OperationContract]
        TecArrangeEntity GetTecArrangeEntity(string id);

        [OperationContract]
        List<TecArrangeEntity> GetTecArrangeList();

        [OperationContract]
        List<TecArrangeEntity> GetTecArrlist4Zmap(TecEntity tecEntity);

        [OperationContract]
        DataTable GetTecStatistics();

        [OperationContract]
        DataTable GetTec8Entity(TecEntity tecEntity);


        [OperationContract]
        DataTable GetTecinfo8Time(List<string> timeseclist);

        #endregion

        #region 教师执行

        [OperationContract]
        int ModiPsw8id(int id, string psw);

        [OperationContract]
        int addTecinfo(TecEntity tecEntity);

        [OperationContract]
        void addTecarrange(TecArrangeEntity taEntity);

        [OperationContract]
        void delTecarrange(string id);

        [OperationContract]
        void updateTecinfo(TecEntity tecEntity);

        #endregion

        #region 学生查询

        [OperationContract]
        DataTable GetStuInfo(string zt);
        [OperationContract]
        DataTable GetStuInfo8id(string id);
        [OperationContract]
        DataTable GetStuInfo8no(string tmpno, string time);

        [OperationContract]
        DataTable GetStuArrangeInfo(string id);
        [OperationContract]
        DataTable GetStuStatistics();

        [OperationContract]
        List<StuArrangeEntity> GetStuArrlist4Zmap(StuEntity stuEntity);

        [OperationContract]
        DataTable GetStu8Entity(StuEntity stuEntity);

        [OperationContract]
        DataTable GetStuinfo8condi(string no, string spell, string sex, string dep,
           List<string> course_name_list, List<string> grade_name_list, List<string> time_sec_list,
           bool isarranged);

        [OperationContract]
        StuEntity GetStuinfoEntity(string id);

        [OperationContract]
        StuArrangeEntity GetStuArrangeEntity(string id);

        [OperationContract]
        List<StuArrangeEntity> GetStuArrangeList();

        #endregion

        #region 学生执行

        [OperationContract]
        int addStuinfo(StuEntity stuEntity);

        [OperationContract]
        void updateStuinfo(StuEntity stuEntity);

        #endregion
    }
}
